package com.asohofrucol.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the form_field database table.
 * 
 */
@Entity
@Table(name="form_field")
public class FormField implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Long id;

	@Column(name="id_form_field_type")
	private int idFormFieldType;

	//bi-directional many-to-one association to Form
	@ManyToOne
	@JoinColumn(name="id_form")
	private Form form;

	//bi-directional many-to-one association to FormFieldData
	@OneToMany(mappedBy="formField")
	private List<FormFieldData> formFieldData;

	//bi-directional many-to-one association to FormFieldInput
	@OneToMany(mappedBy="formField")
	private List<FormFieldInput> formFieldInputs;

	public FormField() {
	}
	public FormField(Long id) {
		this.id = id;
	}
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getIdFormFieldType() {
		return this.idFormFieldType;
	}

	public void setIdFormFieldType(int idFormFieldType) {
		this.idFormFieldType = idFormFieldType;
	}

	public Form getForm() {
		return this.form;
	}

	public void setForm(Form form) {
		this.form = form;
	}

	public List<FormFieldData> getFormFieldData() {
		return this.formFieldData;
	}

	public void setFormFieldData(List<FormFieldData> formFieldData) {
		this.formFieldData = formFieldData;
	}

	public List<FormFieldInput> getFormFieldInputs() {
		return this.formFieldInputs;
	}

	public void setFormFieldInputs(List<FormFieldInput> formFieldInputs) {
		this.formFieldInputs = formFieldInputs;
	}

}